package com.cscp.javastudy.designpattern.adapter.demo1;

public class Computer {

    public void net(NetToUsb adapter){
        adapter.handRequest();
    }

    public static void main(String[] args) {
        // 电脑
        Computer computer = new Computer();
        // 网线
        Adaptee adaptee = new Adaptee();
        // 适配器
        Adapter2 adapter = new Adapter2(adaptee);

        computer.net(adapter);

    }

}
